using System.Collections.Generic;
using UnityEngine;
using System.Linq;

[CreateAssetMenu(fileName = "Condition19-敌方棋子的数量有没有大于等于个数", menuName = "Skill/Condition/Condition19-敌方棋子的数量有没有大于等于个数", order = 19)]
public class Condition19 : ConditionBase
{
    public int count;
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        return ChessManager.GetInstance().chessList.Count(currentChess => currentChess.GetChessSide() != pair.Chess.GetChessSide()) >= count;
    }
}